<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
<html> 
    <head> 
        <title></title> 
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
        <style type="text/css"> 
         
        </style> 
    </head> 
    <body> 
<?php 
if(!empty($_POST['type'])){ 
    echo "<p>You choose: ".$_POST['type']."</p>"; 
}else{ 
    echo "<p>please select a value</p>"; 
} 
?> 
    <form action="<?php $_SERVER['PHP_SELF']; ?>" method="post"> 
        <?php 
        $letter = array (1=> 'a','b','c','d','e','f' ); 
        echo '<select name="type">'; 
        echo '<option> - Choose - </option>'; 
        foreach($letter as $value1){ 
        echo "<option value=\"$value1\">$value1</option>\n"; 
        } 
        echo '</select>'; 
        ?> 
<input type="submit" value="submit"> 
</form> 
    </body> 
</html>